#ifndef DLGCURVE_H
#define DLGCURVE_H

#include <QDialog>
#include "sql.h"
#include "qcustomplot.h"

namespace Ui {
class DlgCurve;
}

class DlgCurve : public QDialog
{
    Q_OBJECT

public:
    explicit DlgCurve(QWidget *parent = nullptr,CSql* sql=nullptr,QCustomPlot* plot=nullptr);
    ~DlgCurve();

public slots:
    void onCurrentIndexChanged(int idx);
    void myQuery();
    void slot_SameTimeMousePressEvent4Plot(QMouseEvent *e);
private:
    Ui::DlgCurve *ui;
    CSql* m_Sql;
    QCustomPlot *m_plot;
    void showPrj();
    void showPara(int idx);

    QCPItemText *m_sameTimeTextTip;
    QCPItemText *m_sameTimeTextTipB;
    QCPItemTracer *m_sameTimeTracer;

};

#endif // DLGCURVE_H
